import React from "react";
import ReactDOM from "react-dom/client";
// 引入less主文件
import "@/index.less";
// 引入router
import router from "@/router";
import { RouterProvider } from "react-router-dom";
// 引入redux
import { Provider } from "react-redux";
import store from "@/store";
// ant-desgin 国际化
import {ConfigProvider} from 'antd'
import zhCN from "antd/locale/zh_CN";
import "dayjs/locale/zh-cn";

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <React.StrictMode>
    <ConfigProvider locale={zhCN}>
      <Provider store={store}>
        <RouterProvider router={router}></RouterProvider>
      </Provider>
    </ConfigProvider>
  </React.StrictMode>
);
